package com.shenyong.ladmin.entity;

import java.util.List;

/**
 * @author
 * @site
 * @company
 * @create
 */
public class PrivilegeRes {
    private boolean spread;
    private int id;
    private String label;
    private List<PrivilegeRes> children;

    @Override
    public String toString() {
        return "PrivilegeRes{" +
                "spread=" + spread +
                ", id=" + id +
                ", label='" + label + '\'' +
                ", children=" + children +
                '}';
    }

    public PrivilegeRes(boolean spread, int id, String label, List<PrivilegeRes> children) {
        this.spread = spread;
        this.id = id;
        this.label = label;
        this.children = children;
    }
    public PrivilegeRes(){

    }
    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<PrivilegeRes> getChildren() {
        return children;
    }

    public void setChildren(List<PrivilegeRes> children) {
        this.children = children;
    }
}
